<?php $this->load->view('header', array('data' => $data));?>
<div id="center">
	<div id="left_box">
		<div class="module"><div class="text">用户管理</div></div>
		<div class="sub_module">
		<ul class="sub_module">
		<?php foreach ($data['module'][$data['current']['module']]['sub_module'] as $v) { ?>
			<li <?php if ($v['ename'] == $data['current']['sub_module']) echo "class='current'"; ?> ><a href="<?php echo "/{$data['current']['module']}/{$v['ename']}";?>"><?php echo $v['cname'];?></a></li>
		<?php }?>
		</ul>
		</div>
		<div class="desc_box1 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
		<div class="desc_box2 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
	</div>
	<div id="right_box">
		<fieldset id="ulist_border">
			<legend>组列表</legend>
			<table>
				<tr>
					<th class="col1">ID</td>
					<th class="col2">用户名</td>
					<th class="col3">更新时间</td>
					<th class="col4">用户备注</td>
					<th class="col4">操作</td>
				</tr>
			<?php foreach ($data['user'] as $v) {?>
				<tr>
					<td class="col1"><?php echo $v['id'];?></td>
					<td class="col2"><?php echo $v['username']; ?></td>
					<td class="col3"><?php echo $v['updated_at'];?></td>
					<td class="col4"><?php echo $v['remark']?></td>
					<td class="col5"><?php echo "<a href='/user/group/{$v['id']}' target='_blank'>管理</a>&nbsp;<a href='/user/edit/{$v['id']}' target='_blank' />信息</a>&nbsp;<a href='javascript:void(0);' class='del' user_id='{$v['id']}'/>删除</a>";?></td>
				</tr>
			<?php }?>
			</table>
			<?php echo $this->pagination->create_links();?>
		</fieldset>
	</div>
</div>
<?php $this->load->view('footer') ?>
